package com.ls.lserp.dbaccess.Dao;

import java.util.List;

import com.ls.lserp.common.persistence.CrudDao;
import com.ls.lserp.common.persistence.annotation.MyBatisDao;
import com.ls.lserp.dbaccess.Entity.ContractCustomEntity;
import com.ls.lserp.dbaccess.Entity.ContractCustomOrderEntity;

@MyBatisDao
public interface ContractCustomOrderEntityMapper extends CrudDao<ContractCustomOrderEntity>{
    int deleteByPrimaryKey(Long id);

    int insert(ContractCustomOrderEntity record);

    int insertSelective(ContractCustomOrderEntity record);

    ContractCustomOrderEntity selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(ContractCustomOrderEntity record);

    int updateByPrimaryKey(ContractCustomOrderEntity record);
    
    /**
     * 根据合同id获取数据集
     * @param contractId
     * @return
     */
    List<ContractCustomOrderEntity> findListByContractId(Long contractId);
    
    int insertList(List<ContractCustomOrderEntity> list);
    
    ContractCustomOrderEntity getByOrderId(Integer orderId);
}